<template>
  <div class="posRelative" style="height: 100%;">
    <el-row>
      <el-col :span="24">
        <headertop></headertop>
      </el-col>
    </el-row>
    <!-- logo -->
    <el-row>
      <el-col :span="24">
        <logotop></logotop>
      </el-col>
    </el-row>
    <!-- 主导航 -->
    <el-row>
      <el-col :span="24">
        <usemain key="1"></usemain>
      </el-col>
    </el-row>
    <el-row>
      <el-col :span="24">
        <div class="grid-content bg-purple-light" style="margin:20px;">
          <el-col :span="24">
            <transition name="fade" mode="out-in" appear>
              <router-view></router-view>
            </transition>
          </el-col>
        </div>
      </el-col>
    </el-row>
  </div>
</template>

<script>
import logotop from "./components/common/logoTop";
import headertop from "./components/common/headerTop";
import usemain from "./components/common/useMain";

export default {
  components: { logotop, headertop, usemain },
  name: "App"
};
</script>

<style>
.fade-enter-active,
.fade-leave-active {
  transition: opacity 0.5s;
}

.fade-enter,
.fade-leave-active {
  opacity: 0;
}

.panel {
  position: absolute;
  top: 0px;
  bottom: 0px;
  width: 100%;
  height: 100%;
}

.panel-top {
  height: 60px;
  line-height: 60px;
  background: #1f2d3d;
  color: #c0ccda;
}

.panel-center {
  background: #324057;
  position: absolute;
  top: 60px;
  bottom: 0px;
  overflow: hidden;
}

.panel-c-c {
  background: #f1f2f7;
  position: absolute;
  right: 0px;
  top: 0px;
  bottom: 0px;
  left: 220px;
  overflow-y: scroll;
  padding: 20px 20px 0;
}

.logout {
  background-size: contain;
  width: 20px;
  height: 20px;
  float: left;
}

.logo {
  width: 150px;
  float: left;
  margin: 10px 10px 10px 18px;
}

.avatarSmall {
  /* width: 72px; */
  width: 52px;
  height: 72px;
  display: block;
  border: 1px solid #ccc;
  position: absolute;
  top: 50px;
  right: 20px;
}

.tip-logout {
  float: right;
  margin-right: 20px;
  padding-top: 5px;
  cursor: pointer;
}

.admin {
  color: #c0ccda;
  text-align: center;
}

.hide-leftMenu {
  left: 0px;
}

.aside {
  width: 220px !important;
  height: 100%;
  overflow-y: scroll !important;
}
</style>
